package com.opener.common.http;

public class StatusCode {
	public static String STATUS_CODE_KEY = "query";
	public static String STATUS_MSG_KEY = "msg";
	public static String STATUS_DATA_KEY = "data";

	/**
	 * 成功
	 */
	public static int SUCCESS = 0;
	/**
	 * 未知错误
	 */
	public static int ERROR = -20;
	/**
	 * 参数错误
	 */
	public static int ERROR_PARAM = -100;

	/**
	 * 验证登录错误
	 */
	public static int ERROR_AUTH = -200;
	//请求时间错误
	public static int REQUEST_TIME_ERROR = -210;
	//请求非法,缺少header
	public static int REQUEST_MISS_HEADER = -211;
	//请求非法，错误信息
	public static int REQUEST_INVALID = -212;
	/**
	 * 权限错误
	 */
	public static int ERROR_ACL = -300;
	/**
	 * 数据库操作
	 */
	public static int ERROR_DB = -400;
	/**
	 * 系统错误，spring 运行异常等
	 */
	public static int ERROR_CTX = -500;

}
